<div class="nav">
   <a class="sel" href="{:U('index')}">广告列表</a>
   <a href="{:U('add')}">添加广告</a>
</div>
<div class="list">
<table class="table_list">
  <thead><tr>
    <td>广告位置</td>
    <td>图片</td>
    <td>广告名称</td>
    <td>链接地址</td>
    <td>是否显示</td>
    <td>操作</td>
  </tr>
  </thead>
  <tbody>
  <foreach name="list" item="list">
    <tr>
        <td>{$list.position}</td>
    <td><a href="__ROOT__{$list.picture}" target="_blank"><img src="__ROOT__{$list.picture}" alt="点击查看原图" width="200px" /></a></td>
    <td>{$list.title}</td>
    <td>{$list.url}</td>
    <td class="edit_toggle" attr_t="is_show" attr_id="{$list.id}">{$list.is_show}</td>
    <td><a class="btn_a" href="{:U('edit',Array('id'=>$list['id']))}">修改</a>&nbsp;<a class="btn_a2" href="{:U('del',Array('id'=>$list['id']))}" onclick="return confirm('确定删除吗？')">删除</a></td>
  </tr>
  </foreach>
  </tbody>
  <tfoot>
    <tr><td colspan="6"><div class="page">{$page}</div></td></tr>
  </tfoot>
</table>
</div>
